﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using NUnit.Framework;
using WatiN.Core;

namespace AxialWeb.Tests
{
	[TestFixture]
	public class NoErrorTests : TestBase
	{
		[Test]
		public void Dummy()
		{
			foreach (string page in new string[] { "Canvas.aspx", "Default.aspx", "DomEvent.aspx", "Form.aspx", 
								 "jQueryTest.aspx", "JSWindow.aspx", "LabelFlex.aspx", "MultiCondition.aspx",
								 "PageMethod.aspx", "WholeClass.aspx", "FirstTest.aspx" })
			{
				using (IE ie = CreateIE(page))
				{
					Assert.IsFalse(ie.Spans.Count > 0 && 
						ie.Spans[0].InnerHtml != null &&
						ie.Spans[0].InnerHtml.StartsWith("<H1>Server Error"), "got an internal error");
				}
			}
		}
	}
}
